package com.kasax.lifecycle

import androidx.lifecycle.Lifecycle
import androidx.lifecycle.LifecycleObserver
import androidx.lifecycle.LifecycleOwner
import androidx.lifecycle.OnLifecycleEvent

class BaseActLifecycleObserver(val owner: LifecycleOwner) : LifecycleObserver {

    @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
    fun onCreate() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onCreate")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_START)
    fun onStart() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onStart")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
    fun onResume() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onResume")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE)
    fun onPause() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onPause")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_STOP)
    fun onStop() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onStop")
    }

    @OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)
    fun onDestroy() {
        // Logger.log("BaseActLifecycleObserver ${owner::class.java.simpleName} onDestroy")
    }
}